home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Networking / OTTCPWillDial / OTTCPWillDial.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.2 KB  |  40 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        OTTCPWillDial.h
  3.  
  4.     Contains:    Library to determine whether open a TCP endpoint will
  5.                 dial the modem.
  6.  
  7.     Written by:    Quinn "The Eskimo!"
  8.  
  9.     Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.     Change History (most recent first):
  12.  
  13.     You may incorporate this sample code into your applications without
  14.     restriction, though the sample code has been provided "AS IS" and the
  15.     responsibility for its operation is 100% yours.  However, what you are
  16.     not permitted to do is to redistribute the source as "DSC Sample Code"
  17.     after having made changes. If you're going to re-distribute the source,
  18.     we require that you make it clear in the source that the code was
  19.     descended from Apple Sample Code, but that you've made changes.
  20. */
  21.  
  22. /////////////////////////////////////////////////////////////////
  23.  
  24. #import "Types.h"
  25.  
  26. /////////////////////////////////////////////////////////////////
  27.  
  28. enum {
  29.     kOTTCPDialUnknown = 0,
  30.     kOTTCPDialTCPDisabled,
  31.     kOTTCPDialYes,
  32.     kOTTCPDialNo
  33. };
  34.  
  35. extern OSStatus OTTCPWillDial(UInt32 *willDial);
  36.     // This routine returns, in willDial, a flag indicating
  37.     // whether opening a TCP/IP provider will cause the modem 
  38.     // to dial.  You must call InitOpenTransport before calling
  39.     // this routine.
  40.